import request from '@/utils/request'
const baseUrl = '/cz-rentbox/api/v1/eqb/' //回调租箱服务-- 我的回调租箱
// import {launchEqbCallbackOrderContract,eqbTerminateContract } from '@/api/EQianBao/index.ts'

/* 
# E签宝:回调箱订单发起合同签署
# POST {{baseUrl}}/eqb/launchEqbCallbackOrderContract 
*/
export const launchEqbCallbackOrderContract = (data: any) => {
  return request({
    url: baseUrl+'launchEqbCallbackOrderContract',
    method: 'post',
    data: data
    // data:{
    //    "orderId":"1814237410068332574"
    // }
  })
}

/* 
###
# E签宝:发起合同解约
# POST {{baseUrl}}/eqb/eqbTerminateContract
*/
export const eqbTerminateContract = (data: any) => {
  return request({
    url: baseUrl+ 'eqbTerminateContract',
    method: 'POST',
    data: data,
    // data:{
    //    "userCompanyId":"1",
    //    "orderId":"1814240791595909180",
    //    "signFlowId":"72a6faf2f79b4a96b1043ffe8509c773",
    //    "rescindReason":1,
    //    "rescindReasonNotes":"解约原因说明"
    // }
  })
}

// E签宝（临时接口 用户即焚）

export const organizationEqbOrderInfo = (data: any) => {
  return request({
    url: baseUrl+ 'organizationEqbOrderInfo',
    method: 'POST',
    data: data,
    // data:{
    //    "userCompanyId":"1",
    //    "orderId":"1814240791595909180",
    //    "signFlowId":"72a6faf2f79b4a96b1043ffe8509c773",
    //    "rescindReason":1,
    //    "rescindReasonNotes":"解约原因说明"
    // }
  })
}


